﻿using Abp.AutoMapper;
using Abp.Domain.Entities;
using KelonProud.QuickQuery.Domain;
using System;
using System.Collections.Generic;
using System.Text;

namespace KelonProud.QuickQuery.Dtos
{
    [AutoMap(typeof(QueryGridColumn))]
    public class QueryGridColumnDto:Entity
    {
        public  string Name { get; set; }

        public  string Alias { get; set; }

        public  bool IsHidden { get; set; }

        public  string Width { get; set; }

        public  int Order { get; set; }

        public  bool IsFilter { get; set; }

        public  string FilterConfig { get; set; }

        public  string Format { get; set; }

        public  TextAlign Align { get; set; }

        public  bool IsFrozen { get; set; }

        public  int QueryId { get; set; }

        public  List<QueryCommandDto> Commands { get; set; }

        public object FilterConfigModel => FilterConfig.JsonToEntity<object>();
    }
}
